﻿@model XZen.Blogger.Models.RestCall
@{
    ViewBag.Title = "Service";
    Layout = "~/Views/Shared/_ajaxLayout.cshtml";
}
<script src="http://localhost:44455/Rpc/easyXDM.debug.js" type="text/javascript"></script>
<script src="http://localhost:44455/Rpc/json2.js" type="text/javascript"></script>
<script type="text/javascript">

    var socket = new easyXDM.Socket({
        onMessage: function (message, origin) {
            var ob = JSON.parse(message);
            alert("Received '" + ob.token + "' from '" + origin + "'");
            ob.html += "Back from Server";
            socket.postMessage(JSON.stringify(ob));
        }
    });
</script>
<div id="log" style="height: 100px; border: 1px dotted black; overflow: auto">
</div>

